package com.peixunp.quartz;

import org.springframework.beans.factory.annotation.Autowired;

import com.peixunp.service.RemarkService;
import com.peixunp.util.Constants;

public class Job30Second {
	
	@Autowired
	private RemarkService remarkService;
	
	public void work30second() {
		try {
			//每30秒自动生成一条评论
			remarkService.autoCreateRemark();
		} catch (Exception e) {
			if(Constants.ISDEBUG){
				e.printStackTrace();
			}
		}
	}
	
}
